﻿<!--#include file="admin/Includes/constants.asp"-->
<!--#include file="admin/Includes/validate.asp"-->
<!--#include file="admin/Includes/Send_Mail.asp"-->
<!--#include file="admin/Includes/validation.asp"-->
<%

Dim origmail_source, origmail_from,  origmail_subject, origmail_body, receiver, Icon
Dim reqtype, reqsubject, referer
Dim hideform, strMes, Action, Mail

reqtype=request("r")
reqsubject = request("s")
Action = request("act")

referer = request("r")
if referer = "" then 
	referer = Request.ServerVariables("HTTP_REFERER")
	If instrRev(referer, "ckid") > 0 Then
	referer = left(referer, instrRev(referer, "ckid")-2)
	End If
	If instr(referer, "detail_print") > 0 Then
	referer = replace(referer, "detail_print","detail")
	End If
End If

If Action <> "" Then
	origmail_from = Replace(request.form("rqfrom_em"),"'","''")
	origmail_source  = Domain_Name	
	receiver = request.form("rqTo")
	origmail_subject = receiver & ": " & Replace(request.form("subject"),"'","''")
	origmail_body  = Replace(request.form("rqMessage"),"'","''")		
	
	if isEmail (origmail_from) then

		call sentMail(strSMTP, origmail_from, origmail_from, origmail_to, origmail_subject, origmail_body)

		If receiver = "Support" Then
			Icon = "<img src='hinh-thoi-trang/ico_info.gif' alt='' width='30' height='30' border='0'>"
			strMes = "Cảm ơn <strong>" & iv_RetFirstname & "</strong>!. Nhân viên của chúng tôi sẽ liên lạc với bạn trong thời gian sớm nhất."
		Else
			Icon = "<img src='hinh-thoi-trang/ico_alert.gif' alt='' width='20' height='20' border='0'>"
			strMes = "Cảm ơn <strong>" & iv_RetFirstname & "</strong>! Thư của bạn đã được gởi đi"	
		End If			
		hideform = true		
	else	
		origmail_subject = Replace(request.form("subject"),"'","''")	
		Icon = "<img src='hinh-thoi-trang/ico_alert.gif' alt='' width='20' height='20' border='0'>"
		strMes = "Xin vui lòng nhập lại email."	
	end if
End If	

%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
	<Meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>Thoitrang.com-lien lac</title>
	<Meta name="keywords" content="thoi trang, thoitrang, thoi trang tre, thoi trang viet nam"> 
	<Meta name="description" content="Tap chi truc tuyen thoi trang viet nam thoitrang.com">
	<Meta http-equiv=" content-language" content ="vi">
	<Meta name="Robots" content="noindex,nofollow">
	<link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> 
	<link rel="icon" href="favicon.ico" type="image/x-icon"> 
	<link rel="STYLESHEET" type="text/css" href="system/styles.css">
	<script language="javascript" src="admin/javascripts/validateVN.js"></script>
	<script src="admin/javascripts/vietUni.js" type="text/javascript"></script>
<script language="javascript">setTypingMode(2);</script>
</head>
<body <%if hideform = false then %>onLoad="document.frm.rqfrom_em.focus()" <%end if%> >
<div id="bt2"><img src="hinh-thoi-trang/bg_top.gif" width="1049" height="20"></div>
<table border="0" cellpadding="0" cellspacing="0" width="990" align="center">	
	<!--top-->
	<!--#include file="system/top.asp" -->
	<!--/top-->
	<tr bgcolor="#6b5a60">
		<td width="160" style="height:1px;"><img src="hinh-thoi-trang/de_clear.gif" alt="" width="1" height="1" border="0"></td>
		<td width="522" valign="top" rowspan="2">		
		<!--body content-->		
			<!--cover-->		
		<table border="0" cellpadding="0" cellspacing="1" width="100%" bgcolor="#B6A8AD">			
			<tr><td colspan="3" style="padding-left:12px;"><img src="hinh-thoi-trang/lien-lac-hp.gif" width="400" height="40"></td></tr>
			<tr>
				<!--col left-->		
				<td valign="top" height=680>
					<table cellpadding="0" cellspacing="0" border="0" bgcolor="#FFFFFF" width=100%%>
						<tr bgcolor="FEF3AA"><td><img src="hinh-thoi-trang/de_clear.gif" alt="" width="1" height="15" border="0"></td></tr>
						<tr bgcolor="FEF3AA"><td class="text">
						<h5 style="padding-left:12px;padding-right:15px;padding-top:10px;display: block;"><strong style="color:8D0045;">CỬA HÀNG THOITRANG.COM-ESECI</strong><br>
						<strong>202B Hoàng Văn Thụ, P9 Phú Nhuận, HCM<br>Phone: 08-244-6110</strong>&nbsp;&nbsp;<a href="detail.asp?vn=bigc&aid=1715&refid=8" class="link" style="text-decoration:underline;font-weight:bold;">Chỉ dẩn đường</a><br>
						Cửa hàng đang trưng bày và bán những mẩu thời trang và nữ trang được yêu chuộng nhất trong trang web này.	</h5></td>
						</tr>		
						<tr><td bgcolor="#B6A8AD"><img src="hinh-thoi-trang/de_clear.gif" alt="" width="1" height="1" border="0"></td></tr>
						<tr><td><img src="hinh-thoi-trang/de_clear.gif" width="1" height="1" border="0"></td></tr>				
						<tr>
							<td style="padding-left:9px;padding-right:11px;" valign=top>
								<table cellpadding="3" cellspacing="0" border="0">								
								<% If strMes <> "" Then%>
									<tr><td colspan="2"><img src="hinh-thoi-trang/de_clear.gif" width="1" height="10" border="0"></td></tr>	
									<tr><td colspan="2" class="text"><P class="paging"><%= Icon %>&nbsp;&nbsp;&nbsp;<%=strMes%></P></td></tr>
								<%	End If%>
								<%If hideform = False Then%>								
								<form name ="frm" action="contact.asp?ckid=<%=ckid%>" method="post" onSubmit="return isValid(this)">	
								<input type="hidden" name="r" value="<%=referer%>">									
								<tr><td colspan="2"><img src="de_clear" width="1" height="10" border="0"></td></tr>				
																					
								<tr>
								  <td nowrap class="paging">&nbsp;</td>
								  <td class="paging"><input type="radio" name="optInput" value="0" onFocus="setTypingMode(0)" />Off
  <input type="radio" name="optInput" value="1" onFocus="setTypingMode(1)" />Telex
  <input type="radio" name="optInput" value="2" onFocus="setTypingMode(2)" checked="checked" />VNI</td>
								  </tr>
								<tr>									
									<td nowrap class="paging"><b>E-mail người gởi</b>:&nbsp;</td>
									<td style="padding-left:8px"><input type="text" name="rqfrom_em" <%if origmail_from <> "" then%> value="<%=origmail_from%>" <%else%> value="<%= iv_Retemail %>" <%end if%> id="E-mail người gởi" size="30"  style="Width:200px;" class="txtInput"></td>
								</tr>										
								<tr>									
									<td class="paging" nowrap>Gởi tới:</td>
									<td  style="padding-left:8px"><select name="rqTo" id="Gởi tới" style="Width:200px;" class="txtInput">	
										<option value="Management" <% If reqtype ="Management" Then %>SELECTED<% End If %>>Ban quản trị (Management)</option>										
										<option value="Editorial" <% If reqtype ="Editorial" Then %>SELECTED<% End If %>>Phòng biên tập (Editorial)</option>	
										<option value="Advertising" <% If reqtype ="Advertising" Then %>SELECTED<% End If %>>Phòng quảng cáo (Advertising)</option>
										<option value="Support" <% If reqtype ="Support" Then %>SELECTED<% End If %>>Phòng hổ trợ bạn đọc (Support)</option>										
									</select>									</td>
								</tr>											
								<tr>									
									<td class="paging">Tiêu đề:</td>
									<td style="padding-left:8px"><input type="text" name="subject" onKeyUp="initTyper(this)"  id="Tiêu đề" value="<%If reqsubject <> "" Then %><%= reqsubject %><% Else %><%= origmail_subject %><%End If%>" size="51" style="Width:364px;" class="txtInput"></td>
								</tr>	
								<tr>									
									<td valign="top" class="paging"><b>Nội dung</b>:&nbsp;&nbsp;</td>
									<td  style="padding-left:8px"><textarea cols="50" rows="9" name="rqMessage" id="Nội dung" style="Width:364px;" class="txtInput" onKeyUp="initTyper(this)" ><%=origmail_body%></textarea></td>
								</tr>								
								<tr><td align="right" colspan="2" style="padding-right:5px;"><input type="submit" name="act" value="GỞI EMAIL" class="btnGo"></td></tr>			
								</form>								
								<%else%>
								<tr><td align="right" colspan="2"><br><br>
									<a href="<%=referer%>"><img src="hinh-thoi-trang/btn_continue.gif" border="0"></a>
								</td></tr>
								<%end if%>									
							</table>										
							</td>
						</tr>
						<tr><td><img src="hinh-thoi-trang/de_clear.gif" alt="" width="1" height="15" border="0"></td></tr>
						<tr><td bgcolor="#B6A8AD"><img src="hinh-thoi-trang/de_clear.gif" alt="" width="1" height="1" border="0"></td></tr>
						<tr><td><img src="hinh-thoi-trang/de_clear.gif" width="1" height="1" border="0"></td></tr>		
						<tr><td><h5 style="padding-left:12px;padding-right:15px;padding-top:10px;display: block;"><strong>Chính sách NO-SPAM </strong><br>
						ThoiTrang.com thiết lập một chính sách NO-SPAM (hòan tòan không có thư rác) 
						đối với email của các bạn và tuyệt đối không cung cấp cho một bên thứ ba. Email của các bạn chỉ dùng để liên lạc các vấn 
						đề hoặc thông tin thời trang mà bạn yêu cầu. Bạn có thể xem <a href="privacypolicy.asp?ckid=<%=ckid%>" class="link" style="text-decoration:underline;">Chính sách bảo mật</a> của chúng tôi để
						biết thêm chi tiết.
						</h5></td></tr>
					</table>						 
				</td>
				<!--/col left-->							
			</tr>
		</table>
			<!--/text-->		
		<!--/body content-->
		</td>
		<td width="308" style="width:0px;"><img src="hinh-thoi-trang/de_clear.gif" alt="" width="1" height="1" border="0"></td>
	</tr>
	<!--main body-->
	<tr bgcolor="#ffffff">
		<td bgcolor="#000000" width="160" valign="top">
		<!--#include file="system/left.asp" -->
		</td>
		<!--missing 1 TD because of Rowspan-->		
		<td bgcolor="#614B00" width="308" valign="top">
			<table border="0" cellpadding="0" cellspacing="0" width="308" align="right">
				<tr bgcolor="#000000"><td colspan="2"><img src="hinh-thoi-trang/de_clear.gif" alt="" width="1" height="1" border="0"></td></tr>
				<form action="listing.asp?ckid=<%=ckid%>" method="post">
				<tr bgcolor="#8D0045">
					<td width="154" valign="top" height="33" ><input type="text" name="search" value="Tìm kiếm" size="22" class="txtSearch"></td>
					<td width="154" valign="top" style="padding-top:7px;padding-left:3px;"><input type="submit" name="go" value="TÌM" class="btnGo"></td>
				</tr>
				</form>
				<tr bgcolor="#000000"><td colspan="2"><img src="hinh-thoi-trang/de_clear.gif" alt="" width="1" height="1" border="0"></td></tr>
				<!--Ads-->
                <tr>
                    	<td colspan="2">
                         <!--Ads Starts-->
                        <table border="0" cellpadding="0" cellspacing="0" width="300" align="center">
                        <tr><td colspan="3"><img src="hinh-quang-cao/eseci_nu-trang.gif" alt="trang suc nu trang eseci"></td></tr>
                        <tr>
                            <td><a href="detail.asp?aid=1741&p=1"><img src="hinh-quang-cao/eseci-bong-tai-an-tuong.jpg" alt="bong tai an tuong"></a></td>
                            <td><a href="detail.asp?aid=1738&p=1"><img src="hinh-quang-cao/eseci-bong-tai-kim-loai.jpg" alt="bong tai kim loai"></a></td>
                            <td><a href="http://thoitrang.com/detail.asp?aid=1740&p=1"><img src="hinh-quang-cao/eseci-bong-tai-kim-cuong.jpg" alt="bong tai kim cuong"></a></td>
                        </tr>
                        <tr>
                            <td><a href="detail.asp?aid=1736&p=1"><img src="hinh-quang-cao/eseci-bong-tai-ngoc-trai.jpg" alt="bong tai ngoc trai"></a></td>
                            <td><a href="detail.asp?aid=1739&p=1"><img src="hinh-quang-cao/eseci-bong-tai-tinh-yeu.jpg" alt="bong tai tinh yeu"></a></td>
                            <td><a href="detail.asp?aid=1735&p=1"><img src="hinh-quang-cao/eseci-bong-tai-pha-le.jpg" alt="bong tai pha le"></a></td>
                        </tr>
                         <tr><td colspan="3"><img src="hinh-quang-cao/eseci-mua-hang.gif" alt="mua nu trang"></td></tr>
            <tr><td colspan="3"><a href="thanh-toan.asp?ckid=<%= ckid %>"><img src="hinh-quang-cao/eseci-tra-tien.gif" alt="tra tien mua nu trang"></a></td></tr>
            <tr><td colspan="3"><img src="hinh-quang-cao/eseci-mua-gia-si.gif" alt="mua ban si nu trang"></td></tr>
                        </table>
                        <!--Ads ends-->
                        </td>
                    </tr>	
			</table>
		</td>
	</tr>
	<!--/main body-->
	<!--#include file="system/bottom.asp" -->
</table>
<div id="bt2"><img src="hinh-thoi-trang/bg_bottom.gif" width="1049" height="20"></div>
</body>
</html>
